package com.aneliya.application;

import org.springframework.context.support.FileSystemXmlApplicationContext;

import com.aneliya.server.IServerImpl;

public class ServerApplication {
	private static final String CONFIGURATION_FILE_URL = "config.xml";
	private static final String SERVER_BEAN_ID = "educationalChatServer";
	
	public static void main(String[] args) {
		FileSystemXmlApplicationContext factory = 
			new FileSystemXmlApplicationContext(CONFIGURATION_FILE_URL);
		
		IServerImpl server = (IServerImpl) factory.getBean(SERVER_BEAN_ID);
		server.start();
	}

}
